package com.foreknow.service;

import com.foreknow.model.Guestbook;
import com.foreknow.model.student;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookService {
    /**
     * 添加留言
     * @param gb
     * @return
     */
    public boolean add(Guestbook gb);

    /**
     * 查看所有留言
     * @return
     */
    List<Object> showAll();

    /**
     * 根据id删除信息
     * @return
     */
    boolean deleteById(int id) throws SQLException;

    /**
     * 根据id修改
     * @return
     */
    boolean update(Guestbook gb) throws SQLException;

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Guestbook getQueryById(int id) throws SQLException;
}
